<%= link_to 'Edit', edit_group_path(@group) %> |
<%= link_to 'Back', groups_path %>

<p>
  <b>Name:</b>
  <%=h @group.name %>
</p>

<p>
  <b>Description:</b>
  <%=h @group.description %>
</p>

<p>
  <b>Preference:</b>
  <%=h @group.preference %>
</p>

<p>
  <b>Registered items:</b>
  <%=h @group.items.size %>
</p>

<ol class="group">
<%- @group.items.each do |item| -%>
<li><%= render :partial => "items/related_items", :locals => { :item => item, :group => @group } %></li>
<%- end -%>
</ol>

<!--p>
  <b>Created at:</b>
  <%=h @group.created_at %>
</p>

<p>
  <b>Updated at:</b>
  <%=h @group.updated_at %>
</p-->


<%= link_to 'Edit', edit_group_path(@group) %> |
<%= link_to 'Back', groups_path %>
